package org.example.day20240813;

import java.util.Scanner;
//个位数统计
public class test9 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String num1 = scanner.nextLine();
        char[] Num1 = num1.toCharArray();
        int[] Num = new int[10];
        for(int i=0; i<Num1.length; i++){
            Num[Num1[i]-'0']++;
        }
        for(int j=0; j<Num1.length; j++){
            if(Num[j]!=0){
                System.out.println(j+":"+Num[j]);
            }
        }
    }
}
